<template>
  <!-- 热门推荐除了“全部”菜单项外，其他菜单项显示内容，定义了父子组件，此为父组件，子组件为Title.vue -->
  <div>
    <article-title :title="articleTitle" />
  </div>
</template>
<script>
import ArticleTitle from "@/views/article/Title";

export default {
  name: "Common",
  components: {
    ArticleTitle
  },
  data() {
    return {
      articleTitle: this.$route.name
    };
  },
  methods: {
    
  },
  watch: {
    $route(to, from) {
      this.articleTitle = to.name;
    },
  },
};
</script>